package com.hs.sfzy.service.impl;

import com.hs.sfzy.entity.Systemuser;
import com.hs.sfzy.mapper.SystemuserMapper;
import com.hs.sfzy.service.SystemuserService;
import com.hs.sfzy.util.MD5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName SystemuserServiceImpl
 * @Description TODO
 * @Author shanglin
 * @Date 2024年10月22日 16:20
 * @Version 1.0
 */
@Service
public class SystemuserServiceImpl implements SystemuserService {
    @Autowired
    private SystemuserMapper systemuserMapper;

    @Override
    public Systemuser login(String username, String password) {
        return systemuserMapper.selectByUsernameAndPassword(username,password);
    }

    @Override
    public int updateUser(Systemuser systemuser) {
        return systemuserMapper.updateUser(systemuser);
    }
}
